#######################################################################################################################
# File Name  : Makefile.derivative.settings                                                                           #
# Description: Memory size definition for each supported derivative                                                   #
# Project    : Vector Basic Runtime System                                                                            #
# Module     : BrsHw for Platform RH850                                                                               #
#                                                                                                                     #
#---------------------------------------------------------------------------------------------------------------------#
# COPYRIGHT                                                                                                           #
#---------------------------------------------------------------------------------------------------------------------#
# Copyright (c) 2017 by Vector Informatik GmbH.                                                  All rights reserved. #
#                                                                                                                     #
#---------------------------------------------------------------------------------------------------------------------#
# AUTHOR IDENTITY                                                                                                     #
#---------------------------------------------------------------------------------------------------------------------#
# Name                          Initials      Company                                                                 #
# ----------------------------  ------------  ------------------------------------------------------------------------#
# Benjamin Walter               visbwa        Vector Informatik GmbH                                                  #
# Timo M�ller                   vistir        Vector Informatik GmbH                                                  #
# Stefan Schorer                vissns        Vector Informatik GmbH                                                  #
# Derick Beng Yuh               visydg        Vector Informatik GmbH                                                  #
# Nguyen Le                     vislnn        Vector Informatik GmbH                                                  #
# Viet Duc Nguyen               visvnn        Vector Informatik GmbH                                                  #
# Michael Kock                  vismkk        Vector Informatik GmbH                                                  #
# Steffen Frank                 visfsn        Vector Informatik GmbH                                                  #
# Amelie Gebhardt               visage        Vector Informatik GmbH                                                  #
# Jens Haerer                   visjhr        Vector Informatik GmbH                                                  #
# Michael Tiran                 vismin        Vector Informatik GmbH                                                  #
# Bjoern Eisenkrammer           visebj        Vector Informatik GmbH                                                  #
# Wolfgang Lienhart             viswlt        Vector Informatik GmbH                                                  #
# Anja Unnasch                  visuna        Vector Informatik GmbH                                                  #
# Paul Buchmueller              visbpl        Vector Informatik GmbH                                                  #
# Nika Hamidi                   visnhi        Vector Informatik GmbH                                                  #
# Johannes Kempf                viskj         Vector Informatik GmbH                                                  #
# Wamba Cyrille                 viswca        Vector Informatik GmbH                                                  #
# Manuel Rettig                 visrgm        Vector Informatik GmbH                                                  #
# Sascha Mauser                 vismaa        Vector Informatik GmbH                                                  #
# Sherif Elsabbahy              vissey        Vector Informatik GmbH                                                  #
# Fabio Campaniello             vitmfco       Vector Italia s.r.l                                                     #
# Ivo Georgiev                  visivg        Vector Informatik GmbH                                                  #
# Thomas Wiesgickl              virtwl        Vector Informatik GmbH                                                  #
#---------------------------------------------------------------------------------------------------------------------#
# REVISION HISTORY                                                                                                    #
#---------------------------------------------------------------------------------------------------------------------#
# Version   Date        Author  Description                                                                           #
# --------  ----------  ------  --------------------------------------------------------------------------------------#
# 01.00.00  2014-07-08  visbwa  Initial version                                                                       #
# 01.00.01  2014-09-30  vistir  Added D1L derivatives                                                                 #
# 01.00.02  2015-01-09  visbwa  fixed Ram start address of P1M (WS1+WS2 support)                                      #
# 01.00.03  2015-01-19  vistir  Added F1M                                                                             #
# 01.00.04  2015-01-21  vistir  Added P1H                                                                             #
# 01.00.05  2015-03-23  visbwa  Added 701406                                                                          #
# 01.00.06  2015-04-15  vissns  Added 701013                                                                          #
# 01.00.07  2015-04-16  vissns  Added 701019                                                                          #
# 01.00.08  2015-05-08  visydg  Added 701020                                                                          #
# 01.00.09  2015-08-18  vislnn  Added 701522, 701023,701030,701310                                                    #
# 01.00.10  2015-08-26  vislnn  Added 701562, 701014                                                                  #
# 01.00.11  2015-09-15  visvnn  Added 701552                                                                          #
# 01.00.12  2015-10-21  visvnn  Added 701311                                                                          #
# 01.00.13  2015-10-22  visvnn  Added 701Z11                                                                          #
# 01.00.14  2015-11-02  visbwa  Added 701402                                                                          #
# 01.00.15  2015-11-03  vismkk  Added 701029                                                                          #
# 01.00.16  2015-11-04  visvnn  Added 701Z12                                                                          #
# 01.00.17  2015-11-05  visbwa  Added 701428                                                                          #
# 01.00.18  2015-11-06  visvnn  Added 701045                                                                          #
# 01.00.19  2015-11-16  visvnn  Added 701507                                                                          #
# 01.00.20  2015-11-20  visvnn  Added 701372                                                                          #
# 01.00.21  2015-12-01  visfsn  Added and fixed support for several D1x                                               #
# 01.00.22  2015-12-09  visvnn  Added 701012                                                                          #
# 01.00.23  2015-12-09  visage  Added 701025                                                                          #
# 01.00.24  2016-01-12  visage  Added 701565, 701564, 701545, 701544                                                  #
# 01.00.25  2016-02-02  visjhr  Added 701587 (F1K Premium), fixed F1K CPU switch                                      #
# 01.00.26  2016-02-18  vismin  Added 701049                                                                          #
# 01.00.27  2016-03-30  visebj  Added 701548, 701527                                                                  #
# 01.00.28  2016-04-04  viswlt  Added 701010                                                                          #
# 01.00.29  2016-04-08  visuna  Added 701053                                                                          #
# 01.00.30  2016-05-11  visbwa  Added 701054                                                                          #
# 01.00.31  2016-05-17  visbpl  Added 701568                                                                          #
# 01.00.32  2016-06-03  viswlt  Added 701530, 701531                                                                  #
# 01.00.33  2016-06-27  visnhi  Added 701318, 701623, 701502, fixed RAM partitions for F1H Family                     #
# 01.01.00  2016-06-29  viskj   Adaptions for support of RAM initialization ('k' after ram/rom-size)                  #
# 01.02.00  2016-06-30  visbwa  Changed header information according to Brs_Template 2.00.01                          #
# 01.03.00  2016-07-27  visnhi  Added MultiCore support for F1H family, renamed RAM_SIZE_* into GLOBAL_RAM_SIZE_*     #
# 01.03.01  2016-08-26  visuna  Added support for 701044                                                              #
# 01.03.02  2016-09-23  viswca  Added support for 701582                                                              #
# 01.03.03  2016-10-07  visrgm  Added support for 701583                                                              #
# 01.03.04  2016-10-28  vismaa  Added support for 701620                                                              #
# 01.03.05  2016-11-21  visbwa  Added support for 701400 and 701401                                                   #
# 01.03.06  2016-11-22  visbwa  Added support for 701327                                                              #
# 01.03.07  2017-01-18  vismaa  Added support for 701015,701378 and 701567                                            #
# 01.03.08  2017-02-20  visbwa  Added support for 701373                                                              #
# 01.03.09  2017-02-27  visbwa  Added support for 701461 (successor of 701406), added hint for F1K and older compilers#
# 01.03.10  2017-03-03  vissey  Added support for 701057                                                              #
# 01.03.11  2017-03-22  vitmfco Added support for 701043                                                              #
# 01.03.12  2017-04-06  visivg  Added support for 701602                                                              #
# 01.03.13  2017-04-10  visivg  Added support for 701581                                                              #
# 01.03.14  2017-04-20  visivg  Added support for 701320 and 701364                                                   #
# 01.03.15  2017-05-21  viswlt  Added support for 701026, 701027, 701028                                              #
# 01.03.16  2017-04-27  virtwl  Added support for 701022                                                              #
# 01.03.17  2017-05-05  vismaa  Added support for 701621                                                              #
# 01.03.18  2017-05-15  visivg  Added support for 701649                                                              #
# 01.03.19  2017-05-22  visbwa  Fixed LOCAL_RAM_SIZE_CORE1_701527 (128kB according to R01UH0445EJ0110 Rev.1.10)       #
# 01.03.20  2017-06-07  vishan  Added support for 701534                                                              #
#######################################################################################################################

#------------------------------------------------------------------------------
# define ROM/RAM area
#------------------------------------------------------------------------------

ifeq ($(DERIVATIVE),)
 $(error "Please define DERIVATIVE in Makefile.Config")
endif

################################################################################
####  F1L Derivatives                                                       ####
################################################################################
F1L_RAM_START_ADDRESS_128 = 0xFEDE0000
F1L_RAM_START_ADDRESS_96  = 0xFEDE8000
F1L_RAM_START_ADDRESS_64  = 0xFEDF0000
F1L_RAM_START_ADDRESS_32  = 0xFEDF8000
F1L_RAM_START_ADDRESS_16  = 0xFEDFC000

GHS_CPU_SWITCH_F1L     = rh850g3k
RENESAS_CPU_SWITCH_F1L = g3k

####  R7F701010X  ####
DERIVATIVE_GROUP_701010 = F1L
CODEFLASH_SIZE_701010   = 512
GLOBAL_RAM_SIZE_701010  = 32

####  R7F701012X  ####
DERIVATIVE_GROUP_701012 = F1L
CODEFLASH_SIZE_701012   = 384
GLOBAL_RAM_SIZE_701012  = 32

####  R7F701013X  ####
DERIVATIVE_GROUP_701013 = F1L
CODEFLASH_SIZE_701013   = 512
GLOBAL_RAM_SIZE_701013  = 32

####  R7F701014X  ####
DERIVATIVE_GROUP_701014 = F1L
CODEFLASH_SIZE_701014   = 768
GLOBAL_RAM_SIZE_701014  = 64

####  R7F701015X  ####
DERIVATIVE_GROUP_701015 = F1L
CODEFLASH_SIZE_701015   = 1024
GLOBAL_RAM_SIZE_701015  = 96

####  R7F701019X  ####
DERIVATIVE_GROUP_701019 = F1L
CODEFLASH_SIZE_701019   = 768
GLOBAL_RAM_SIZE_701019  = 64

####  R7F701020X  ####
DERIVATIVE_GROUP_701020 = F1L
CODEFLASH_SIZE_701020   = 1024
GLOBAL_RAM_SIZE_701020  = 96

####  R7F701022X  ####
DERIVATIVE_GROUP_701022 = F1L
CODEFLASH_SIZE_701022   = 384
GLOBAL_RAM_SIZE_701022  = 16

####  R7F701023X  ####
DERIVATIVE_GROUP_701023 = F1L
CODEFLASH_SIZE_701023   = 512
GLOBAL_RAM_SIZE_701023  = 32

####  R7F701025X  ####
DERIVATIVE_GROUP_701025 = F1L
CODEFLASH_SIZE_701025   = 1024
GLOBAL_RAM_SIZE_701025  = 96

####  R7F701026X  ####
DERIVATIVE_GROUP_701026 = F1L
CODEFLASH_SIZE_701026   = 384
GLOBAL_RAM_SIZE_701026  = 16

####  R7F701027X  ####
DERIVATIVE_GROUP_701027 = F1L
CODEFLASH_SIZE_701027   = 512
GLOBAL_RAM_SIZE_701027  = 32

####  R7F701028X  ####
DERIVATIVE_GROUP_701028 = F1L
CODEFLASH_SIZE_701028   = 768
GLOBAL_RAM_SIZE_701028  = 64

####  R7F701029X  ####
DERIVATIVE_GROUP_701029 = F1L
CODEFLASH_SIZE_701029   = 1024
GLOBAL_RAM_SIZE_701029  = 96

####  R7F701030X  ####
DERIVATIVE_GROUP_701030 = F1L
CODEFLASH_SIZE_701030   = 1536
GLOBAL_RAM_SIZE_701030  = 128

####  R7F701031X  ####
DERIVATIVE_GROUP_701031 = F1L
CODEFLASH_SIZE_701031   = 2048
GLOBAL_RAM_SIZE_701031  = 128

####  R7F701035X  ####
DERIVATIVE_GROUP_701035 = F1L
CODEFLASH_SIZE_701035   = 2048
GLOBAL_RAM_SIZE_701035  = 128

####  R7F701044X  ####
DERIVATIVE_GROUP_701044 = F1L
CODEFLASH_SIZE_701044   = 768
GLOBAL_RAM_SIZE_701044  = 64

####  R7F701045X  ####
DERIVATIVE_GROUP_701045 = F1L
CODEFLASH_SIZE_701045   = 1024
GLOBAL_RAM_SIZE_701045  = 96

####  R7F701049X  ####
DERIVATIVE_GROUP_701049 = F1L
CODEFLASH_SIZE_701049   = 2048
GLOBAL_RAM_SIZE_701049  = 128

####  R7F701053X  ####
DERIVATIVE_GROUP_701053 = F1L
CODEFLASH_SIZE_701053   = 2048
GLOBAL_RAM_SIZE_701053  = 128

####  R7F701054X  ####
DERIVATIVE_GROUP_701054 = F1L
CODEFLASH_SIZE_701054   = 1536
GLOBAL_RAM_SIZE_701054  = 128

####  R7F701057X  ####
DERIVATIVE_GROUP_701057 = F1L
CODEFLASH_SIZE_701057   = 2048
GLOBAL_RAM_SIZE_701057  = 128

####  R7F701043X  ####
DERIVATIVE_GROUP_701043 = F1L
CODEFLASH_SIZE_701043   = 1024
GLOBAL_RAM_SIZE_701043  = 96

################################################################################
####  F1M Derivatives                                                       ####
################################################################################
F1M_RAM_START_ADDRESS_256 = 0xFEBC0000 
F1M_RAM_START_ADDRESS_192 = 0xFEBD0000
F1M_RAM_START_ADDRESS_64  = 0xFEF00000

GHS_CPU_SWITCH_F1M     = rh850g3m
RENESAS_CPU_SWITCH_F1M = g3m

####  R7F701544X  ####
DERIVATIVE_GROUP_701544 = F1M
CODEFLASH_SIZE_701544   = 3072
GLOBAL_RAM_SIZE_701544  = 192

####  R7F701545X  ####
DERIVATIVE_GROUP_701545 = F1M
CODEFLASH_SIZE_701545   = 4096
GLOBAL_RAM_SIZE_701545  = 256

####  R7F701548X  ####
DERIVATIVE_GROUP_701548 = F1M
CODEFLASH_SIZE_701548   = 3072
GLOBAL_RAM_SIZE_701548  = 192

####  R7F701568X  ####
DERIVATIVE_GROUP_701568 = F1M
CODEFLASH_SIZE_701568   = 3072
GLOBAL_RAM_SIZE_701568  = 192

####  R7F701549X  ####
DERIVATIVE_GROUP_701549 = F1M
CODEFLASH_SIZE_701549   = 4096
GLOBAL_RAM_SIZE_701549  = 256

####  R7F701552X  ####
DERIVATIVE_GROUP_701552 = F1M
CODEFLASH_SIZE_701552   = 3072
GLOBAL_RAM_SIZE_701552  = 192

####  R7F701564X  ####
DERIVATIVE_GROUP_701564 = F1M
CODEFLASH_SIZE_701564   = 3072
GLOBAL_RAM_SIZE_701564  = 192

####  R7F701565X  ####
DERIVATIVE_GROUP_701565 = F1M
CODEFLASH_SIZE_701565   = 4096
GLOBAL_RAM_SIZE_701565  = 256

####  R7F701569X  ####
DERIVATIVE_GROUP_701569 = F1M
CODEFLASH_SIZE_701569   = 4096
GLOBAL_RAM_SIZE_701569  = 256

################################################################################
####  F1H Derivatives                                                       ####
################################################################################
#F1H_RAM_START_ADDRESS_112 = 0xFEBE4000
#F1H_RAM_START_ADDRESS_128 = 0xFEBE0000
#F1H_RAM_START_ADDRESS_192 = 0xFEBD0000
#F1H_RAM_START_ADDRESS_256 = 0xFEBC0000
# Global Ram Size is Half of the size of real Global RAM as it is shared between two Cores (Visnhi)

F1H_LOCAL_RAM_START_ADDRESS_CORE0_112   = 0xFEBE4000
F1H_LOCAL_RAM_START_ADDRESS_CORE1_112   = 0xFE9E4000
F1H_LOCAL_RAM_START_ADDRESS_CORE0_128   = 0xFEBE0000
F1H_LOCAL_RAM_START_ADDRESS_CORE1_128   = 0xFE9E0000
F1H_LOCAL_RAM_START_ADDRESS_CORE0_256   = 0xFEBC0000
F1H_LOCAL_RAM_START_ADDRESS_CORE1_256   = 0xFE9C0000
F1H_LOCAL_RAM_START_ADDRESS_CORE0_192   = 0xFEBD0000
F1H_LOCAL_RAM_START_ADDRESS_CORE1_192   = 0xFE9D0000
F1H_GLOBAL_RAM_BANK_A_START_ADDRESS_16  = 0xFEEFC000
F1H_GLOBAL_RAM_BANK_B_START_ADDRESS_16  = 0xFEFFC000
F1H_GLOBAL_RAM_BANK_A_START_ADDRESS_32  = 0xFEEF8000
F1H_GLOBAL_RAM_BANK_B_START_ADDRESS_32  = 0xFEFF8000
F1H_GLOBAL_RAM_BANK_A_START_ADDRESS_48  = 0xFEEF4000
F1H_GLOBAL_RAM_BANK_B_START_ADDRESS_48  = 0xFEFF4000
F1H_GLOBAL_RAM_BANK_A_START_ADDRESS_64  = 0xFEEF0000
F1H_GLOBAL_RAM_BANK_B_START_ADDRESS_64  = 0xFEFF0000

GHS_CPU_SWITCH_F1H     = rh850g3m
RENESAS_CPU_SWITCH_F1H = g3m

####  R7F701501X  ####
DERIVATIVE_GROUP_701501       = F1H
CODEFLASH_SIZE_BANKA_701501   = 1536
CODEFLASH_SIZE_BANKB_701501   = 1536
LOCAL_RAM_SIZE_CORE0_701501   = 112
LOCAL_RAM_SIZE_CORE1_701501   = 112
GLOBAL_RAM_SIZE_701501        = 16

####  R7F701502X  #### 
DERIVATIVE_GROUP_701502       = F1H
CODEFLASH_SIZE_BANKA_701502   = 2048
CODEFLASH_SIZE_BANKB_701502   = 2048
LOCAL_RAM_SIZE_CORE0_701502   = 128
LOCAL_RAM_SIZE_CORE1_701502   = 128
GLOBAL_RAM_SIZE_701502        = 32

####  R7F701503X  ####
DERIVATIVE_GROUP_701503       = F1H
CODEFLASH_SIZE_BANKA_701503   = 4096
CODEFLASH_SIZE_BANKB_701503   = 2048
LOCAL_RAM_SIZE_CORE0_701503   = 192
LOCAL_RAM_SIZE_CORE1_701503   = 192
GLOBAL_RAM_SIZE_701503        = 32

####  R7F701534X  ####
DERIVATIVE_GROUP_701534       = F1H
CODEFLASH_SIZE_BANKA_701534   = 4096
CODEFLASH_SIZE_BANKB_701534   = 2048
LOCAL_RAM_SIZE_CORE0_701534   = 256
LOCAL_RAM_SIZE_CORE1_701534   = 256
GLOBAL_RAM_SIZE_701534        = 64

####  R7F701522X  ####
DERIVATIVE_GROUP_701522       = F1H
CODEFLASH_SIZE_BANKA_701522   = 2048
CODEFLASH_SIZE_BANKB_701522   = 2048
LOCAL_RAM_SIZE_CORE0_701522   = 256
LOCAL_RAM_SIZE_CORE1_701522   = 256
GLOBAL_RAM_SIZE_701522        = 48

####  R7F701507X  ####
DERIVATIVE_GROUP_701507       = F1H
CODEFLASH_SIZE_BANKA_701507   = 2048
CODEFLASH_SIZE_BANKB_701507   = 2048
LOCAL_RAM_SIZE_CORE0_701507   = 128
LOCAL_RAM_SIZE_CORE1_701507   = 128
GLOBAL_RAM_SIZE_701507        = 32

####  R7F701527X  ####
DERIVATIVE_GROUP_701527       = F1H
CODEFLASH_SIZE_BANKA_701527   = 2048
CODEFLASH_SIZE_BANKB_701527   = 2048
LOCAL_RAM_SIZE_CORE0_701527   = 128
LOCAL_RAM_SIZE_CORE1_701527   = 128
GLOBAL_RAM_SIZE_701527        = 32

####  R7F701530X  ####
DERIVATIVE_GROUP_701530 = F1H
CODEFLASH_SIZE_701530   = 3072
GLOBAL_RAM_SIZE_701530  = 256

####  R7F701531X  ####
DERIVATIVE_GROUP_701531 = F1H
CODEFLASH_SIZE_701531   = 4096
GLOBAL_RAM_SIZE_701531  = 256

################################################################################
####  F1K Derivatives                                                       ####
################################################################################
ifeq ($(DERIVATIVE_GROUP_$(DERIVATIVE)),F1K)
 $(warning "The Derivative group F1K consists of 2 RAM area which has same size but different start address! You can try the other start address if the current one is not working!")
endif

F1K_RAM_START_ADDRESS_32  = 0xFEBE8000
F1K_RAM_START_ADDRESS_64  = 0xFEBE0000
F1K_RAM_START_ADDRESS_96  = 0xFEBD8000
F1K_RAM_START_ADDRESS_128 = 0xFEBD0000
F1K_RAM_START_ADDRESS_256 = 0xFEBC0000

# older Compiler versions (e.g GHS 2013.5.5) do not support g3kh Core directly.
# choose the option rh850g3k instead. E.g. GHS 2015.1.7 is supporting g3kh.
#GHS_CPU_SWITCH_F1K     = rh850g3k
GHS_CPU_SWITCH_F1K     = rh850g3kh
RENESAS_CPU_SWITCH_F1K = g3kh

####  R7F701562X  ####
DERIVATIVE_GROUP_701562 = F1K
CODEFLASH_SIZE_701562   = 1536
GLOBAL_RAM_SIZE_701562  = 96

####  R7F701567X  ####
DERIVATIVE_GROUP_701567 = F1K
CODEFLASH_SIZE_701567   = 2048
GLOBAL_RAM_SIZE_701567  = 128

####  R7F701581X  ####
DERIVATIVE_GROUP_701581 = F1K
CODEFLASH_SIZE_701581   = 2048
GLOBAL_RAM_SIZE_701581  = 128

####  R7F701582X  ####
DERIVATIVE_GROUP_701582 = F1K
CODEFLASH_SIZE_701582   = 1536
GLOBAL_RAM_SIZE_701582  = 96

####  R7F701583X  ####
DERIVATIVE_GROUP_701583 = F1K
CODEFLASH_SIZE_701583   = 2048
GLOBAL_RAM_SIZE_701583  = 128

####  R7F701587X  ####
DERIVATIVE_GROUP_701587 = F1K
CODEFLASH_SIZE_701587   = 2048
GLOBAL_RAM_SIZE_701587  = 128

####  R7F701602X  ####
DERIVATIVE_GROUP_701602 = F1K
CODEFLASH_SIZE_701602   = 768
GLOBAL_RAM_SIZE_701602  = 32

####  R7F701620X  ####
DERIVATIVE_GROUP_701620 = F1K
CODEFLASH_SIZE_701620   = 768
GLOBAL_RAM_SIZE_701620  = 32

####  R7F701621X  ####
DERIVATIVE_GROUP_701621 = F1K
CODEFLASH_SIZE_701621   = 1024
GLOBAL_RAM_SIZE_701621  = 64

####  R7F701623X  ####
DERIVATIVE_GROUP_701623 = F1K
CODEFLASH_SIZE_701623   = 1024
GLOBAL_RAM_SIZE_701623  = 64

####  R7F701649X  ####
DERIVATIVE_GROUP_701649 = F1K
CODEFLASH_SIZE_701649   = 4096
GLOBAL_RAM_SIZE_701649  = 256

################################################################################
####  P1x Derivatives                                                       ####
################################################################################
P1M_RAM_START_ADDRESS_64    = 0xFEDF0000
P1M_E_RAM_START_ADDRESS_64  = 0xFEEF8000
P1M_C_RAM_START_ADDRESS_128 = 0xFEDE0000
P1M_RAM_START_ADDRESS_128   = 0xFEDE0000
P1H_RAM_START_ADDRESS_64    = 0xFEDF0000

GHS_CPU_SWITCH_P1M       = rh850g3m
RENESAS_CPU_SWITCH_P1M   = g3m

GHS_CPU_SWITCH_P1M_E     = rh850g3m
RENESAS_CPU_SWITCH_P1M_E = g3m

GHS_CPU_SWITCH_P1M_C     = rh850g3m
RENESAS_CPU_SWITCH_P1M_C = g3m

GHS_CPU_SWITCH_P1H       = rh850g3m
RENESAS_CPU_SWITCH_P1H   = g3m

#### R7F701307X ####
DERIVATIVE_GROUP_701307 = P1M
CODEFLASH_SIZE_701307   = 512
GLOBAL_RAM_SIZE_701307  = 64

#### R7F701310X ####
DERIVATIVE_GROUP_701310 = P1M
CODEFLASH_SIZE_701310   = 1024
GLOBAL_RAM_SIZE_701310  = 128

#### R7F701311X ####
DERIVATIVE_GROUP_701311 = P1M
CODEFLASH_SIZE_701311   = 1024
GLOBAL_RAM_SIZE_701311  = 128

#### R7F701312X ####
DERIVATIVE_GROUP_701312 = P1M
CODEFLASH_SIZE_701312   = 1024
GLOBAL_RAM_SIZE_701312  = 128

#### R7F701318X ####
DERIVATIVE_GROUP_701318 = P1M
CODEFLASH_SIZE_701318   = 2048
GLOBAL_RAM_SIZE_701318  = 128

#### R7F701319X ####
DERIVATIVE_GROUP_701319 = P1M
CODEFLASH_SIZE_701319   = 2048
GLOBAL_RAM_SIZE_701319  = 128

#### R7F701320X ####
DERIVATIVE_GROUP_701320 = P1M
CODEFLASH_SIZE_701320   = 2048
GLOBAL_RAM_SIZE_701320  = 128

#### R7F701364X ####
DERIVATIVE_GROUP_701364 = P1M
CODEFLASH_SIZE_701364   = 2048
GLOBAL_RAM_SIZE_701364  = 128

#### R7F701378X ####
DERIVATIVE_GROUP_701378 = P1M_E
CODEFLASH_SIZE_701378   = 2048
GLOBAL_RAM_SIZE_701378  = 64

#### R7F701325 ####
DERIVATIVE_GROUP_701325 = P1H
CODEFLASH_SIZE_701325   = 10240
GLOBAL_RAM_SIZE_701325  = 64

#### R7F701327 ####
DERIVATIVE_GROUP_701327 = P1H
CODEFLASH_SIZE_701327   = 4096
GLOBAL_RAM_SIZE_701327  = 64

#### R7F701372 ####
DERIVATIVE_GROUP_701372 = P1H
CODEFLASH_SIZE_701372   = 4096
GLOBAL_RAM_SIZE_701372  = 64

#### R7F701373 ####
DERIVATIVE_GROUP_701373 = P1M_C
CODEFLASH_SIZE_701373   = 2048
GLOBAL_RAM_SIZE_701373  = 128

################################################################################
####  R1x Derivatives                                                       ####
################################################################################
R1M_RAM_START_ADDRESS_32  = 0xFEDF8000
R1M_RAM_START_ADDRESS_96  = 0xFEDE8000

GHS_CPU_SWITCH_R1M     = rh850g3k
RENESAS_CPU_SWITCH_R1M = g3k

#### R7F701062X ####
DERIVATIVE_GROUP_701062 = R1M
CODEFLASH_SIZE_701062   = 512
GLOBAL_RAM_SIZE_701062  = 32

#### R7F701070X ####
DERIVATIVE_GROUP_701070 = R1M
CODEFLASH_SIZE_701070   = 1024
GLOBAL_RAM_SIZE_701070  = 96

################################################################################
####  D1x Derivatives                                                       ####
################################################################################
D1L_RAM_START_ADDRESS_256 = 0xFEBC0000
D1L_RAM_START_ADDRESS_512 = 0xFEB80000
D1M_RAM_START_ADDRESS_512 = 0xFEB80000

GHS_CPU_SWITCH_D1M     = rh850g3m
RENESAS_CPU_SWITCH_D1M = g3m
GHS_CPU_SWITCH_D1L     = rh850g3m
RENESAS_CPU_SWITCH_D1L = g3m

#### D1L1 ####
DERIVATIVE_GROUP_701400 = D1L
CODEFLASH_SIZE_701400   = 2048
GLOBAL_RAM_SIZE_701400  = 256

DERIVATIVE_GROUP_701401 = D1L
CODEFLASH_SIZE_701401   = 2048
GLOBAL_RAM_SIZE_701401  = 256

DERIVATIVE_GROUP_701421 = D1L
CODEFLASH_SIZE_701421   = 2048
GLOBAL_RAM_SIZE_701421  = 256

#### D1L2 ####
DERIVATIVE_GROUP_701402 = D1L
CODEFLASH_SIZE_701402   = 4096
GLOBAL_RAM_SIZE_701402  = 512

DERIVATIVE_GROUP_701422 = D1L
CODEFLASH_SIZE_701422   = 4096
GLOBAL_RAM_SIZE_701422  = 512

#### D1L2H ####
DERIVATIVE_GROUP_701403 = D1L
CODEFLASH_SIZE_701403   = 4096
GLOBAL_RAM_SIZE_701403  = 512

DERIVATIVE_GROUP_701423 = D1L
CODEFLASH_SIZE_701423   = 4096
GLOBAL_RAM_SIZE_701423  = 512

#### D1M1 ####
DERIVATIVE_GROUP_701404 = D1M
CODEFLASH_SIZE_701404   = 3840
GLOBAL_RAM_SIZE_701404  = 512

DERIVATIVE_GROUP_701424 = D1M
CODEFLASH_SIZE_701424   = 3840
GLOBAL_RAM_SIZE_701424  = 512

DERIVATIVE_GROUP_701405 = D1M
CODEFLASH_SIZE_701405   = 5120
GLOBAL_RAM_SIZE_701405  = 512

DERIVATIVE_GROUP_701425 = D1M
CODEFLASH_SIZE_701425   = 5120
GLOBAL_RAM_SIZE_701425  = 512

#### D1M1H ####
DERIVATIVE_GROUP_701406 = D1M
CODEFLASH_SIZE_701406   = 3840
GLOBAL_RAM_SIZE_701406  = 512

DERIVATIVE_GROUP_701426 = D1M
CODEFLASH_SIZE_701426   = 3840
GLOBAL_RAM_SIZE_701426  = 512

DERIVATIVE_GROUP_701407 = D1M
CODEFLASH_SIZE_701407   = 5120
GLOBAL_RAM_SIZE_701407  = 512

DERIVATIVE_GROUP_701427 = D1M
CODEFLASH_SIZE_701427   = 5120
GLOBAL_RAM_SIZE_701427  = 512

DERIVATIVE_GROUP_701461 = D1M
CODEFLASH_SIZE_701461   = 3840
GLOBAL_RAM_SIZE_701461  = 512

#### D1M2 ####
DERIVATIVE_GROUP_701408 = D1M
CODEFLASH_SIZE_701408   = 3840
GLOBAL_RAM_SIZE_701408  = 512

DERIVATIVE_GROUP_701428 = D1M
CODEFLASH_SIZE_701428   = 3840
GLOBAL_RAM_SIZE_701428  = 512

DERIVATIVE_GROUP_701410 = D1M
CODEFLASH_SIZE_701410   = 5120
GLOBAL_RAM_SIZE_701410  = 512

DERIVATIVE_GROUP_701430 = D1M
CODEFLASH_SIZE_701430   = 5120
GLOBAL_RAM_SIZE_701430  = 512

#### D1M2H ####
DERIVATIVE_GROUP_701411 = D1M
CODEFLASH_SIZE_701411   = 3840
GLOBAL_RAM_SIZE_701411  = 512

DERIVATIVE_GROUP_701431 = D1M
CODEFLASH_SIZE_701431   = 3840
GLOBAL_RAM_SIZE_701431  = 512

DERIVATIVE_GROUP_701412 = D1M
CODEFLASH_SIZE_701412   = 5120
GLOBAL_RAM_SIZE_701412  = 512

DERIVATIVE_GROUP_701432 = D1M
CODEFLASH_SIZE_701432   = 5120
GLOBAL_RAM_SIZE_701432  = 512

################################################################################
####  E1x Derivatives                                                       ####
################################################################################
E1L_RAM_START_ADDRESS_112   = 0xFEEF0000
E1M_RAM_START_ADDRESS_256   = 0xFEEE0000
E1FCC_RAM_START_ADDRESS_256 = 0xFEEE0000

GHS_CPU_SWITCH_E1L     = rh850g3m
RENESAS_CPU_SWITCH_E1L = g3m
GHS_CPU_SWITCH_E1M     = rh850g3m
RENESAS_CPU_SWITCH_E1M = g3m
GHS_CPU_SWITCH_E1FCC     = rh850g3m
RENESAS_CPU_SWITCH_E1FCC = g3m

#### R7F701201X ####
DERIVATIVE_GROUP_701201 = E1L
CODEFLASH_SIZE_701201   = 2048
GLOBAL_RAM_SIZE_701201  = 112

#### R7F701205X ####
DERIVATIVE_GROUP_701205 = E1L
CODEFLASH_SIZE_701205   = 2048
GLOBAL_RAM_SIZE_701205  = 112

#### R7F701Z11X ####
DERIVATIVE_GROUP_701Z11 = E1FCC
CODEFLASH_SIZE_701Z11   = 4096
GLOBAL_RAM_SIZE_701Z11  = 256

#### R7F701Z12X ####
DERIVATIVE_GROUP_701Z12 = E1FCC
CODEFLASH_SIZE_701Z12   = 4096
GLOBAL_RAM_SIZE_701Z12  = 256

#### R7F701202X ####
DERIVATIVE_GROUP_701202 = E1M
CODEFLASH_SIZE_701202   = 4096
GLOBAL_RAM_SIZE_701202  = 256

#### R7F701204X ####
DERIVATIVE_GROUP_701204 = E1M
CODEFLASH_SIZE_701204   = 4096
GLOBAL_RAM_SIZE_701204  = 256

################################################################################
####  C1x Derivatives                                                       ####
################################################################################
C1H_RAM_START_ADDRESS_64 = 0xFEBF0000
C1M_RAM_START_ADDRESS_64 = 0xFEBF0000

GHS_CPU_SWITCH_C1H     = rh850g3m
RENESAS_CPU_SWITCH_C1H = g3m
GHS_CPU_SWITCH_C1M     = rh850g3m
RENESAS_CPU_SWITCH_C1M = g3m

#### R7F701260X ####
DERIVATIVE_GROUP_701260 = C1H
CODEFLASH_SIZE_701260   = 2048
GLOBAL_RAM_SIZE_701260  = 64

#### R7F701263X ####
DERIVATIVE_GROUP_701263 = C1M
CODEFLASH_SIZE_701263   = 2048
GLOBAL_RAM_SIZE_701263  = 64
